package _18_strategy_pattern.v1_0;

/**
 * @Description: 锦囊
 * @Auther: 2019/6/25 11:02 by zhang.jy
 */
public class Context {
	//构造函数，你要使用哪个妙计
	private IStrategy straegy;

	public Context(IStrategy strategy) {
		this.straegy = strategy;
	}

	//使用计谋了，看我出招了
	public void operate() {
		this.straegy.operate();
	}
}